//
//  BHReportDetailTextCell.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/6/15.
//

import UIKit

class BHReportDetailTextCell: UITableViewCell {
    
    lazy var text_label: UILabel = {
        let label = UILabel.init()
        label.textColor = .color_666666
        label.font  = .systemFont(ofSize: 14, weight: .regular)
        label.numberOfLines = 0
        return label
    }()

    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.contentView.addSubview(self.text_label)
        self.text_label.mas_makeConstraints { (make) in
            make?.left.mas_equalTo()(16)
            make?.right.equalTo()(self)?.offset()(-16)
            make?.top.mas_equalTo()(10)
            make?.bottom.equalTo()(self)?.offset()(-5)
        }
        
        let str = "一大堆的文字介绍啊一大堆的文字介绍啊一大堆的文字介绍啊一大堆的文字介绍啊一大堆的文字介绍啊一大堆的文字介绍啊一大堆的文字介绍啊一大堆的文字介绍啊一大堆的文字介绍啊一大堆的文字介绍啊一大堆的文字介绍啊一大堆的文字介绍啊一大堆的文字介绍啊".toAttribute()
        
        self.text_label.attributedText = str.addLineSpace(8)
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
